﻿#include "rpc_conf.h"
#include "rpc_info.h"

CRpcConfParser::CRpcConfParser()
    : m_conf(new RpcConf)
{
    
}
CRpcConfParser::~CRpcConfParser()
{
    delete m_conf;
}
bool CRpcConfParser::Parser(XMLElement* root)
{
    m_conf->co_event_timeout = root->FirstChildElement("co_event_timeout")->UnsignedText();
    m_conf->keep_server_alive = root->FirstChildElement("keep_server_alive")->UnsignedText();
    m_conf->delay_del_co_event = root->FirstChildElement("delay_del_co_event")->UnsignedText();
    return true;
}

const RpcConf* CRpcConfParser::conf()
{
    return m_conf;
}
